//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.yang.newcustomcuilian.movelevel;

import java.io.File;
import com.yang.newcustomcuilian.newapi.NewAPI;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.Plugin;

public class Config {
    public static String MOVE_LEVEL_INVENTORY_NAME = "";

    public Config() {
    }

    public void load(Plugin p) {
        File file1 = new File(p.getDataFolder(), "MoveLevelInventoryConfig" + NewAPI.getFileVersion() + ".yml");
        YamlConfiguration config1 = YamlConfiguration.loadConfiguration(file1);
        if (file1.exists()) {
            MOVE_LEVEL_INVENTORY_NAME = config1.getString("MOVE_LEVEL_INVENTORY_NAME");
        } else {
            p.saveResource("MoveLevelInventoryConfig" + NewAPI.getFileVersion() + ".yml", true);
            this.load(p);
        }
    }
}
